package com.zking.seckillpro.controller;


import com.zking.seckillpro.service.IUserService;
import com.zking.seckillpro.util.JsonResponseBody;
import com.zking.seckillpro.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.Map;

/**
 * <p>
 * �û���Ϣ�� 前端控制器
 * </p>
 *
 * @author zking
 * @since 2022-03-06
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService userService;
    @RequestMapping("/userLogin")
    public JsonResponseBody<?> userLogin(@Valid UserVo userVo,HttpServletRequest req, HttpServletResponse resp){
        return userService.userLogin(userVo,req,resp);
    }
}
